package OOday03;

public class Test01 {
    public static void main(String[] args) {
        FishS f1 = new FishS("小鱼",66,"红","人") ;
        f1.eat();
        Dog d2 = new Dog("小鱼",66,"红");
        d2.swim();//DOG重写父类的
        d2.lookHome();//DOG自带的
        d2.drink();//复用Animal的
        d2.eat();//重写父类的
        Fish f2 = new Fish("小鱼",6,"黄");
        f2.drink();//父类的
        f2.eat();//重写自父类的
        f2.swim();//重写

        Chicken c1 = new Chicken("小鸡",5,"紫");
        c1.eat();//重写 父类
        c1.drink();//复用
        c1.layEgg();//特有
        c1.beEaten();//特有
        c1.swim();//重写




//        DogS d1 = new DogS("小狗",99,"黄","鸡肉");
//        d1.eat();
//        Chik c1 = new Chik("小鸡",99,"蓝","鸡肉");
//        c1.eat();
    }




}
